package com.xtx.mapper;

import com.xtx.entity.DetailImage;
import com.xtx.vo.GoodsDetailVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DetialMapper {
    @Select("select * from goods_detail where goodsId = #{id}")
    GoodsDetailVo getGoodsDetail(Integer id);

    @Select("select * from detail_image where  id = #{id}")
    DetailImage[] getDetailImageById(Integer id);
}